package com.diandi.ddsb.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * @author luyujian
 */
public class BaseEntity implements Serializable {

	/**
	 * @author yaojunbing
	 * @since 2015年12月29日
	 */

	private static final long serialVersionUID = -5064849491725378641L;

	private Long id;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	public Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	private Long version;

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "BaseEntity{" + "id=" + id + ", createTime=" + createTime + ", updateTime="
				+ updateTime + ", version=" + version + '}';
	}
}
